
import Vue from 'vue'

import Json from '../mock/Json.js' //测试用数据

const json = type=>{
	//模拟异步请求数据
	return new Promise(resolve=>{
		setTimeout(()=>{
			resolve(Json[type])
		}, 500)
	})
}

Vue.prototype.$api = {json};